csrf token mismatch laravel api

47

<meta name="csrf-token" content="{{ csrf_token() }}" />
data: {
        "_token": "{{ csrf_token() }}",
        "id": id
        }
//Go to app/Http/Middleware/VerifyCsrfToken.php and add this values
	protected $except = [
        '/api/*'
    ];
<input type="hidden" name="_token" id="token" value="{{ csrf_token() }}">

Comments

Submit
0 Comments